package ordinal;

/**
 * 用[实例域]代替序数
 */
public enum  EnsembleEnum {
    SOLO(1) , DUET(22), TRIO(3), QUARTET(4);

    private final int numberOfMusicians;


    EnsembleEnum(int numberOfMusicians) {
        this.numberOfMusicians = numberOfMusicians;
    }

    public int getNumberOfMusicians() {
        return numberOfMusicians;
    }
}
